import { requestGet, requestPost } from "./index";
interface Idata {
  [propName: string]: any; //propName为形参
}

/* 用户登录 */
export const Userrights = async (person?: Idata) => {
  return await requestPost(
    "http://localhost:8888/Mock/mock/473bd0d46f1d8a04d3fdc3116e8f1655/test/Userrights",
    person
  );
};

/* 天气 */
export const weather = async () => {
  return await requestPost(
    "http://localhost:8888/weather/?app=weather.realtime&weaId=94&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json"
  );
};

/* 列表数据 */
export const tableList = async () => {
  return await requestGet(
    "http://localhost:8888/Mock/mock/473bd0d46f1d8a04d3fdc3116e8f1655/test/tablelist"
  );
};
